<?php
declare (strict_types = 1);

namespace app\api\controller\v1;
use app\api\service\StatusCode;
use app\api\validate\ParamMustBePostiveInt;
use app\api\model\Summarize as ModelSummarize;

/**
 * 教师端课程管理类
 */
class Summarize extends Api
{
    /**
     * 获取所有课程
     */
    public function index()
    {
        $course_id = (new ParamMustBePostiveInt('course_id'))->paramCheck();
        $summarize = ModelSummarize::getSummarize($course_id);
        $this->return_msg(StatusCode::SUCCESS,'查询成功', $summarize);
    }

}